package com.demo.domain;

import java.io.Serializable;
import java.util.StringJoiner;

public class CtControUser implements Serializable {
    private int Cid;
    private String avatar;
    private String email;
    private String name;
    private String mobile;
    private String password;
    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getCid() {
        return Cid;
    }

    public void setCid(int cid) {
        Cid = cid;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public CtControUser(int cid, String avatar, String email, String name, String mobile, String password,String token) {
        Cid = cid;
        this.token = token;
        this.avatar = avatar;
        this.email = email;
        this.name = name;
        this.mobile = mobile;
        this.password = password;
    }

    public CtControUser() {
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", CtControUser.class.getSimpleName() + "[", "]")
                .add("Cid=" + Cid)
                .add("avatar='" + avatar + "'")
                .add("email='" + email + "'")
                .add("name='" + name + "'")
                .add("mobile='" + mobile + "'")
                .add("password='" + password + "'")
                .add("token='" + token + "'")
                .toString();
    }
}
